import 'package:flutter_app_unionad/view_model/page_manager_view_model.dart';
import 'package:provider/provider.dart';
import 'package:provider/single_child_widget.dart';

//注册 状态管理
List<SingleChildWidget> providers = [
  ChangeNotifierProvider(create: (ctx) => PagesManagerViewModel()),

  /*
  关联协议用这个

        ChangeNotifierProxyProvider<FilterViewModel,MealViewModel>( //viewModel相互依赖用这个
          create: (ctx)=>MealViewModel(),
          update: (ctx1, filterVM,mealVM){
            mealVM.updateFilters(filterVM);
            return mealVM;
          }),
  * */
];
